﻿<UserControl
	x:Class="UI.SettingsPanel.SettingsAutoUpdateControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:properties="clr-namespace:SettingsAddIn.Properties"
    xmlns:wpf="clr-namespace:ViewOnCore.Helper.WPF;assembly=ViewOnCore">
	<StackPanel>
		<StackPanel Orientation="Horizontal" Margin="0,0,0,25">
			<Button x:Name="btnUpdate" Margin="5,2,5,2" Style="{DynamicResource Button.TransparentWithEffect2}">
				<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
					<wpf:Icon Source="/_images/PartSettings/UpdateNow.png" Width="18" Height="18"/>
					<TextBlock Text="{x:Static properties:Globalization.SettingsAutoUpdateControl_UpdateNow}" Margin="5,0,5,0" VerticalAlignment="Center"/>
				</StackPanel>
			</Button>
		</StackPanel>

		<Grid>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="120"/>
				<ColumnDefinition/>
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="25"/>
				<RowDefinition Height="25"/>
				<RowDefinition Height="25"/>
				<RowDefinition Height="25"/>
			</Grid.RowDefinitions>

			<CheckBox x:Name="chkCheckUpdateAtStartup" VerticalAlignment="Center" Grid.ColumnSpan="2" Content="{x:Static properties:Globalization.SettingsAutoUpdateControl_CheckUpdateAtStartup}"/>

			<TextBlock Text="{x:Static properties:Globalization.SettingsAutoUpdateControl_LastVersion}" Grid.Row="1" VerticalAlignment="Center"/>
			<TextBlock x:Name="txtVersion" Grid.Row="1" Grid.Column="1" Width="50" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0"/>

			<TextBlock Text="{x:Static properties:Globalization.SettingsAutoUpdateControl_LastCheck}" Grid.Row="2" VerticalAlignment="Center"/>
			<TextBlock x:Name="txtLastCheck" Grid.Row="2" Grid.Column="1" Width="50" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0"/>

			<TextBlock Text="{x:Static properties:Globalization.SettingsAutoUpdateControl_CheckEvery}" Grid.Row="3" VerticalAlignment="Center"/>
			<ComboBox x:Name="cboCheckDays" Grid.Row="3" Grid.Column="1" Width="50" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0"/>
		</Grid>

	</StackPanel>
</UserControl>
